# models.py

import torch
import torch.nn as nn
from config import INPUT_DIM_FREQ, INPUT_DIM_BAND, HIDDEN_DIM_FREQ, HIDDEN_DIM_BAND, ACTION_SPACE_BAND, \
    ACTION_SPACE_FREQ


class FrequencyQNetwork(nn.Module):
    def __init__(self):
        super(FrequencyQNetwork, self).__init__()
        self.fc = nn.Sequential(
            nn.Linear(INPUT_DIM_FREQ, HIDDEN_DIM_FREQ),
            nn.ReLU(),
            nn.Linear(HIDDEN_DIM_FREQ, ACTION_SPACE_FREQ)
        )

    def forward(self, x):
        return self.fc(x)

class BandwidthQNetwork(nn.Module):
    def __init__(self):
        super(BandwidthQNetwork, self).__init__()
        self.fc = nn.Sequential(
            nn.Linear(INPUT_DIM_BAND, HIDDEN_DIM_BAND),
            nn.ReLU(),
            nn.Linear(HIDDEN_DIM_BAND, ACTION_SPACE_BAND)
        )

    def forward(self, x):
        return self.fc(x)